import {createApp} from 'vue'
import ElementPlus from 'element-plus';
import {createPinia} from "pinia";
import App from './App.vue'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs';
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
import router from './router';
import 'element-plus/dist/index.css';
import './style.css'
import vue3JsonExcel from 'vue3-json-excel';

const app = createApp(App);

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(createPinia());
app.use(router);
app.use(ElementPlus, {locale: zhCn, size: ''});
app.use(vue3JsonExcel);
app.mount('#app');
